package com.mzkj.wanjulaile.mobile.api.modules.appointment.mapper;

import com.mzkj.wanjulaile.mobile.api.modules.appointment.entity.AppointmentCollection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 预约收藏DAO接口
 * @author hgw
 * @version 2016-10-25
 */
@Repository
public interface AppointmentCollectionMapper{
	List<AppointmentCollection> getExists(AppointmentCollection appointmentCollection);

	void cancelCollect(AppointmentCollection appointmentCollection);

	void deleteByAccountIdAndToy(AppointmentCollection app);

	List<AppointmentCollection> findAppointToyList();

	List<AppointmentCollection> findAppointListByToyId(String toyId);

	/**
	 * @param toyIdList
	 * @param accountId
	 */
	void batchDelete(@Param("toyIds") List<String> toyIdList, @Param("accountId") String accountId);

	AppointmentCollection get(String id);

	List<AppointmentCollection> findList(AppointmentCollection appointmentCollection);

	void delete(AppointmentCollection appointmentCollection);

	void  insert(AppointmentCollection appointmentCollection);

	void update(AppointmentCollection appointmentCollection);
}